/**
 * Called before the form component is rendered.
 *
 * @param {JSRenderEvent} event the render event
 *
 * @properties={typeid:24,uuid:"DB16D38B-D7CD-4E6A-977D-2DC27CEA2202"}
 */
function onRender(event) {
	/** @type {JSRecord<db:/infocom/recep_detalle>}*/
	var $rcd = event.getRecord()
	if ($rcd != null && $rcd.cantidad != null)
	{
		if ($rcd.cantidad_alter > $rcd.recep_detalle_to_oc_detalle.cantidad_pendiente_entrega)
			event.getRenderable().bgcolor = '#ffff80';
			event.getRenderable().fgcolor = '#000000';
	}	
}
